<div class="content-wrapper" style="min-height: 976px;">

    <section class="content-header">
        <h1>
            人员管理
            <small></small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i>人员管理</a></li>
            <li><a href="#">添加校方管理</a></li>
            <li class="active"></li>
        </ol>
    </section>

    <section class="content">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">添加校方管理</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form method="get" class="form-horizontal ng-pristine ng-valid ng-valid-required" name="myForm" id="addSchoolManagerForm">
                <div class="box-body">
                    <div class="form-group">
                        <label for="username" class="col-sm-2 control-label"><span style="color: red">*</span>用户名</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control ng-pristine ng-valid" ng-model="username" id="username" placeholder="用户名" ng-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                      <label for="password" class="col-sm-2 control-label"><span style="color: red">*</span>密码</label>
                      <div class="col-sm-6">
                        <input type="password" class="form-control" maxlength=16 ng-model="password" id="password" placeholder="输入密码，密码长度6-16位" ng-required="true">
                      </div>
                    </div>
                    <div class="form-group">
                        <label for="retypePassword" class="col-sm-2 control-label"><span style="color: red">*</span>确认密码</label>
                        <div class="col-sm-6">
                            <input type="password" class="form-control" maxlength=16 ng-model="retypePassword" id="retypePassword" placeholder="重新输入密码" ng-required="true" ng-blur="isRetypeSame()">
                            <span style="color: red" ng-show="isRetypeDiff">密码输入不一致。</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="realName" class="col-sm-2 control-label"><span style="color: red">*</span>真实姓名</label>
                        <div class="col-sm-6">
                            <input class="form-control" ng-model="realName" id="realName" placeholder="真实姓名" ng-required="true">
                        </div>
                    </div>

                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <button class="btn btn-primary col-sm-4 col-sm-offset-3" ng-click="addSchoolManager()" ng-disabled="myForm.$invalid||!isRetypeSame">添加</button>
                </div>
            </form>
        </div>
    </section>
</div>